﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BlueCurve.SearchContract;

public partial class UserControls_ResultPresenter : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public UserControls_ResultPresenter()
    {
    }

    public UserControls_ResultPresenter(SearchData result)
    {
        this.Title.Text = string.Format("<a alt=\"\" href=\"{0}\">{1}</a>", result.Url, result.Title);
        this.Snippet.Text = result.Description;
        this.Size.Text = result.Size;
        this.Type.Text = result.Type;
        this.Date.Text = result.Date.ToString();
        this.Domain.Text = result.Domain;
    }
}
